<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            /* font: 16px/24px 'Microsoft YaHei'; */
            font: 18px/1.5 'Microsoft YaHei';
        }

        div {
            font-size: 12px;
        }
    </style>
</head>
<body>
    <!-- 行高带单位和不带单位的用法 -->
    <div>标题1</div>
    <p>标题2</p>
</body>
</html>